// src/utils/markdown-loader.js
const MarkdownIt = require('markdown-it');

module.exports = function(source) {
  const md = new MarkdownIt({
    html: true,
    linkify: true,
    typographer: true
  });

  const content = md.render(source);
  
  return `
    <template>
      <div class="markdown-content">${content}</div>
    </template>
  `;
};